//
//  HuiLVHeaderView.m
//  CenturyCity
//
//  Created by beisheng03 on 2018/1/23.
//  Copyright © 2018年 beisheng. All rights reserved.


#import "HuiLVHeaderView.h"

@interface HuiLVHeaderView ()
@property (weak, nonatomic) IBOutlet UILabel *leftLabel;
@property (weak, nonatomic) IBOutlet UILabel *middleLabel;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *middleCenterX;

@property (weak, nonatomic) IBOutlet UILabel *rightLabel;
@end

@implementation HuiLVHeaderView

- (void)awakeFromNib{
    
    [super awakeFromNib];
    
    self.leftLabel.font = MYFONT(16);
    
    self.middleLabel.font = MYFONT(16);
    
    self.rightLabel.font = MYFONT(16);
    
}



- (void)setLabelH:(CGFloat)labelH{
    
    _labelH = labelH;
    
    
    
    CGFloat temp = [@"昨日" sizeWithAttributes:[NSDictionary dictionaryWithObjectsAndKeys:MYFONT(16), NSFontAttributeName, nil]].width;
    
    self.middleCenterX.constant = (_labelH - temp) * 0.5;

    
    
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


@end
